﻿using System;
using System.Collections.Generic;
using System.IO;
using MediaPortal.Plugins.MovingPictures;
using MediaPortal.Plugins.MovingPictures.Database;
using MediaPortal.Plugins.MovingPictures.MainUI;
using NLog;

namespace dlCentral.PluginHandlers {
    internal class MovingPicturesHandler : PluginHandler {
        private static Logger logger = LogManager.GetCurrentClassLogger();

        public override int ID {
            get { return 96742; }
            set { }
        }

        public override string PluginName {
            get { return "Moving Pictures"; }
            set { }
        }

        // The video file details we want to grab subtitles for.
        public override MediaDetail MediaDetail {
            get { return _mediaDetail; }
            set { }
        }
        private MediaDetail _mediaDetail;

        public override bool Modified {
            get { return false; }
            set { }
        }

        // retrieves info from Moving Pictures
        protected override bool GrabFileDetails() {
           _mediaDetail = new MediaDetail();
           _mediaDetail.SearchType = SiteSearchType.IMDb;
           return true;
        }

        protected override bool IsAvailable() {
            if (!IsAssemblyAvailable("MovingPictures", new Version(1, 0, 3)))
                return false;

            return true;
        }
    }
}
